package com.config;

import feign.Contract;
import feign.Logger;
import feign.auth.BasicAuthRequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by Administrator on 2017/12/24.
 */
@Configuration
public class DefaultFeignConfig {

    @Bean
    public Contract feignContract(){
        return new feign.Contract.Default();
    }

    @Bean
    public BasicAuthRequestInterceptor basicAuthRequestInterceptor() {
        return new BasicAuthRequestInterceptor("guoyan", "222");
    }

    @Bean
    Logger.Level fenloggerLevel(){
        return Logger.Level.FULL;
    }
}
